<html>
<head><meta charset="utf-8"><title>stage0 windows build failure · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html">stage0 windows build failure</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204967368"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204967368" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204967368">(Jul 24 2020 at 21:10)</a>:</h4>
<p>Hello, first cloned the rust repo to try and get a build working. Backtrace says the error is cmake::fail, so it might be the unresolved symbols? I'm on windows 10 with VS 2019 and the cmake tools installed.</p>
<div class="codehilite"><pre><span></span><code>stack backtrace:
   0: backtrace::backtrace::trace_unsynchronized
             at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.46\src\backtrace\mod.rs:66
   1: std::sys_common::backtrace::_print_fmt
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\sys_common\backtrace.rs:78
   2: std::sys_common::backtrace::_print::{{impl}}::fmt
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\sys_common\backtrace.rs:59
   3: core::fmt::write
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libcore\fmt\mod.rs:1076
   4: std::io::Write::write_fmt&lt;std::sys::windows::stdio::Stderr&gt;
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\io\mod.rs:1537
   5: std::sys_common::backtrace::_print
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\sys_common\backtrace.rs:62
   6: std::sys_common::backtrace::print
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\sys_common\backtrace.rs:49
   7: std::panicking::default_hook::{{closure}}
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:198
   8: std::panicking::default_hook
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:217
   9: std::panicking::rust_panic_with_hook
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:526
  10: std::panicking::begin_panic_handler
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:437
  11: std::panicking::begin_panic_fmt
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:391
  12: cmake::fail
             at C:\Users\quydx\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.42\src\lib.rs:861
  13: cmake::run
             at C:\Users\quydx\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.42\src\lib.rs:839
  14: cmake::Config::build
             at C:\Users\quydx\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.42\src\lib.rs:745
  15: bootstrap::native::{{impl}}::run
             at .\src\bootstrap\native.rs:333
  16: bootstrap::builder::Builder::ensure&lt;bootstrap::native::Llvm&gt;
             at .\src\bootstrap\builder.rs:1379
  17: bootstrap::compile::rustc_cargo_env
             at .\src\bootstrap\compile.rs:576
  18: bootstrap::compile::rustc_cargo
             at .\src\bootstrap\compile.rs:528
  19: bootstrap::compile::{{impl}}::run
             at .\src\bootstrap\compile.rs:499
  20: bootstrap::builder::Builder::ensure&lt;bootstrap::compile::Rustc&gt;
             at .\src\bootstrap\builder.rs:1379
  21: bootstrap::compile::{{impl}}::run
             at .\src\bootstrap\compile.rs:780
  22: bootstrap::builder::Builder::ensure&lt;bootstrap::compile::Assemble&gt;
             at .\src\bootstrap\builder.rs:1379
  23: bootstrap::builder::Builder::compiler
             at .\src\bootstrap\builder.rs:582
  24: bootstrap::compile::{{impl}}::run
             at .\src\bootstrap\compile.rs:773
  25: bootstrap::builder::Builder::ensure&lt;bootstrap::compile::Assemble&gt;
             at .\src\bootstrap\builder.rs:1379
  26: bootstrap::builder::Builder::compiler
             at .\src\bootstrap\builder.rs:582
  27: bootstrap::compile::{{impl}}::make_run
             at .\src\bootstrap\compile.rs:48
  28: bootstrap::builder::StepDescription::maybe_run
             at .\src\bootstrap\builder.rs:189
  29: bootstrap::builder::StepDescription::run
             at .\src\bootstrap\builder.rs:211
  30: bootstrap::builder::Builder::run_step_descriptions
             at .\src\bootstrap\builder.rs:574
  31: bootstrap::builder::Builder::execute_cli
             at .\src\bootstrap\builder.rs:565
  32: bootstrap::Build::build
             at .\src\bootstrap\lib.rs:491
  33: bootstrap::main
             at .\src\bootstrap\bin\main.rs:15
  34: std::rt::lang_start::{{closure}}&lt;tuple&lt;&gt;&gt;
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\src\libstd\rt.rs:67
  35: std::rt::lang_start_internal::{{closure}}
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\rt.rs:52
  36: std::panicking::try::do_call
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:348
  37: std::panicking::try
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panicking.rs:325
  38: std::panic::catch_unwind
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\panic.rs:394
  39: std::rt::lang_start_internal
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\/src\libstd\rt.rs:51
  40: std::rt::lang_start&lt;tuple&lt;&gt;&gt;
             at /rustc/e51b714db8ff82ac38ea7c6742d6f5480e2e77bd\src\libstd\rt.rs:67
  41: main
  42: invoke_main
             at d:\A01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  43: __scrt_common_main_seh
             at d:\A01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  44: BaseThreadInitThunk
  45: RtlUserThreadStart
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
</code></pre></div>


<p><a href="https://hastebin.com/yilokumeqa.coffeescript">https://hastebin.com/yilokumeqa.coffeescript</a></p>



<a name="204968792"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204968792" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204968792">(Jul 24 2020 at 21:26)</a>:</h4>
<p>This is an error building llvm from source. Have you considered using a system llvm instead? Not sure how hard that is on windows: <a href="https://rustc-dev-guide.rust-lang.org/building/suggested.html#building-with-system-llvm">https://rustc-dev-guide.rust-lang.org/building/suggested.html#building-with-system-llvm</a></p>



<a name="204968845"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204968845" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204968845">(Jul 24 2020 at 21:27)</a>:</h4>
<p>the relevant error message looks like <a href="https://hastebin.com/cagireyafu.rb">https://hastebin.com/cagireyafu.rb</a></p>



<a name="204969471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204969471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204969471">(Jul 24 2020 at 21:35)</a>:</h4>
<p>Can I just grab llvm 10 from their website?</p>



<a name="204969574"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204969574" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204969574">(Jul 24 2020 at 21:36)</a>:</h4>
<p>possibly, as long as you can get <code>llvm-config</code> in your environment I _think_ things will just work</p>



<a name="204980996"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204980996" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204980996">(Jul 25 2020 at 01:08)</a>:</h4>
<p>Had to do some stuff with vcpkg, but it works now, thanks! LLVM doesn't ship the config in the precompiled bins sadly.</p>



<a name="204981067"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204981067" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204981067">(Jul 25 2020 at 01:10)</a>:</h4>
<p>yay! glad it's working :)</p>



<a name="204982007"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204982007" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204982007">(Jul 25 2020 at 01:37)</a>:</h4>
<p>I lied :(<br>
Actually linking it gives me a bunch of notes</p>
<div class="codehilite"><pre><span></span><code>  = note: librustc_llvm-1e5f6b2d41c05068.rlib(X86Disassembler.cpp.obj) : error LNK2038: mismatch detected for &#39;RuntimeLibrary&#39;: value &#39;MD_DynamicRelease&#39; doesn&#39;t match value &#39;MT_StaticRelease&#39; in librustc_llvm-1e5f6b2d41c05068.rlib(Linker.o)
          librustc_llvm-1e5f6b2d41c05068.rlib(X86AsmParser.cpp.obj) : error LNK2038: mismatch detected for &#39;RuntimeLibrary&#39;: value &#39;MD_DynamicRelease&#39; doesn&#39;t match value &#39;MT_StaticRelease&#39; in librustc_llvm-1e5f6b2d41c05068.rlib(Linker.o)
          librustc_llvm-1e5f6b2d41c05068.rlib(X86WinEHState.cpp.obj) : error LNK2038: mismatch detected for &#39;RuntimeLibrary&#39;: value &#39;MD_DynamicRelease&#39; doesn&#39;t match value &#39;MT_StaticRelease&#39; in librustc_llvm-1e5f6b2d41c05068.rlib(Linker.o)
</code></pre></div>


<p>And errors</p>
<div class="codehilite"><pre><span></span><code>          librustc_llvm-1e5f6b2d41c05068.rlib(MachineBasicBlock.cpp.obj) : error LNK2019: unresolved external symbol __imp_rint referenced in function &quot;public: void __cdecl llvm::MachineBasicBlock::print(class llvm::raw_ostream &amp;,class llvm::ModuleSlotTracker &amp;,class llvm::SlotIndexes const *,bool)const &quot; (?print@MachineBasicBlock@llvm@@QEBAXAEAVraw_ostream@2@AEAVModuleSlotTracker@2@PEBVSlotIndexes@2@_N@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(BranchProbability.cpp.obj) : error LNK2001: unresolved external symbol __imp_rint
          librustc_llvm-1e5f6b2d41c05068.rlib(SimplifyLibCalls.cpp.obj) : error LNK2019: unresolved external symbol __imp_log2 referenced in function &quot;private: class llvm::Value * __cdecl llvm::LibCallSimplifier::replacePowWithExp(class llvm::CallInst *,class llvm::IRBuilder&lt;class llvm::ConstantFolder,class llvm::IRBuilderDefaultInserter&gt; &amp;)&quot; (?replacePowWithExp@LibCallSimplifier@llvm@@AEAAPEAVValue@2@PEAVCallInst@2@AEAV?$IRBuilder@VConstantFolder@llvm@@VIRBuilderDefaultInserter@2@@2@@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(ConstantFolding.cpp.obj) : error LNK2001: unresolved external symbol __imp_log2
          librustc_llvm-1e5f6b2d41c05068.rlib(SimplifyLibCalls.cpp.obj) : error LNK2019: unresolved external symbol __imp_log2f referenced in function &quot;private: class llvm::Value * __cdecl llvm::LibCallSimplifier::replacePowWithExp(class llvm::CallInst *,class llvm::IRBuilder&lt;class llvm::ConstantFolder,class llvm::IRBuilderDefaultInserter&gt; &amp;)&quot; (?replacePowWithExp@LibCallSimplifier@llvm@@AEAAPEAVValue@2@PEAVCallInst@2@AEAV?$IRBuilder@VConstantFolder@llvm@@VIRBuilderDefaultInserter@2@@2@@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(ConstantFolding.cpp.obj) : error LNK2019: unresolved external symbol __imp_feclearexcept referenced in function &quot;class llvm::Constant * __cdecl `anonymous namespace&#39;::ConstantFoldBinaryFP(double (__cdecl*)(double,double),double,double,class llvm::Type *)&quot; (?ConstantFoldBinaryFP@?A0xa3245e41@@YAPEAVConstant@llvm@@P6ANNN@ZNNPEAVType@3@@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(InstrProf.cpp.obj) : error LNK2019: unresolved external symbol __imp_strncpy referenced in function &quot;public: void __cdecl llvm::OverlapStats::dump(class llvm::raw_fd_ostream &amp;)const &quot; (?dump@OverlapStats@llvm@@QEBAXAEAVraw_fd_ostream@2@@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(WindowsResource.cpp.obj) : error LNK2001: unresolved external symbol __imp_strncpy
          librustc_llvm-1e5f6b2d41c05068.rlib(XCOFFObjectWriter.cpp.obj) : error LNK2001: unresolved external symbol __imp_strncpy
          librustc_llvm-1e5f6b2d41c05068.rlib(WinCOFFObjectWriter.cpp.obj) : error LNK2019: unresolved external symbol __imp__time64 referenced in function &quot;public: virtual unsigned __int64 __cdecl `anonymous namespace&#39;::WinCOFFObjectWriter::writeObject(class llvm::MCAssembler &amp;,class llvm::MCAsmLayout const &amp;)&quot; (?writeObject@WinCOFFObjectWriter@?A0x108a2793@@UEAA_KAEAVMCAssembler@llvm@@AEBVMCAsmLayout@4@@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(Program.cpp.obj) : error LNK2019: unresolved external symbol __imp__setmode referenced in function &quot;class std::error_code __cdecl llvm::sys::ChangeStdinToBinary(void)&quot; (?ChangeStdinToBinary@sys@llvm@@YA?AVerror_code@std@@XZ)
          librustc_llvm-1e5f6b2d41c05068.rlib(Process.cpp.obj) : error LNK2019: unresolved external symbol __imp__heapwalk referenced in function &quot;public: static unsigned __int64 __cdecl llvm::sys::Process::GetMallocUsage(void)&quot; (?GetMallocUsage@Process@sys@llvm@@SA_KXZ)
          librustc_llvm-1e5f6b2d41c05068.rlib(Process.cpp.obj) : error LNK2019: unresolved external symbol __imp_close referenced in function &quot;public: static class std::error_code __cdecl llvm::sys::Process::SafelyCloseFileDescriptor(int)&quot; (?SafelyCloseFileDescriptor@Process@sys@llvm@@SA?AVerror_code@std@@H@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(Path.cpp.obj) : error LNK2001: unresolved external symbol __imp_close
          OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol __imp_close
          librustc_llvm-1e5f6b2d41c05068.rlib(Path.cpp.obj) : error LNK2019: unresolved external symbol __imp__chsize_s referenced in function &quot;class std::error_code __cdecl llvm::sys::fs::resize_file(int,unsigned __int64)&quot; (?resize_file@fs@sys@llvm@@YA?AVerror_code@std@@H_K@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(Path.cpp.obj) : error LNK2019: unresolved external symbol __imp_read referenced in function &quot;class std::error_code __cdecl llvm::sys::fs::copy_file_internal(int,int)&quot; (?copy_file_internal@fs@sys@llvm@@YA?AVerror_code@std@@HH@Z)
          OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol __imp_read
          librustc_llvm-1e5f6b2d41c05068.rlib(Path.cpp.obj) : error LNK2019: unresolved external symbol __imp_write referenced in function &quot;class std::error_code __cdecl llvm::sys::fs::copy_file_internal(int,int)&quot; (?copy_file_internal@fs@sys@llvm@@YA?AVerror_code@std@@HH@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(raw_ostream.cpp.obj) : error LNK2001: unresolved external symbol __imp_write
          librustc_llvm-1e5f6b2d41c05068.rlib(ErrorHandling.cpp.obj) : error LNK2001: unresolved external symbol __imp_write
          OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp_write
          librustc_llvm-1e5f6b2d41c05068.rlib(Errno.cpp.obj) : error LNK2019: unresolved external symbol __imp_strerror_s referenced in function &quot;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl llvm::sys::StrError(int)&quot; (?StrError@sys@llvm@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(raw_ostream.cpp.obj) : error LNK2019: unresolved external symbol __imp_lseek referenced in function &quot;public: __cdecl llvm::raw_fd_ostream::raw_fd_ostream(int,bool,bool)&quot; (??0raw_fd_ostream@llvm@@QEAA@H_N0@Z)
          OLDNAMES.lib(lseek.obi) : error LNK2001: unresolved external symbol __imp_lseek
          librustc_llvm-1e5f6b2d41c05068.rlib(NativeFormatting.cpp.obj) : error LNK2019: unresolved external symbol __imp__fpclass referenced in function &quot;void __cdecl llvm::write_double(class llvm::raw_ostream &amp;,double,enum llvm::FloatStyle,class llvm::Optional&lt;unsigned __int64&gt;)&quot; (?write_double@llvm@@YAXAEAVraw_ostream@1@NW4FloatStyle@1@V?$Optional@_K@1@@Z)
          librustc_llvm-1e5f6b2d41c05068.rlib(JSON.cpp.obj) : error LNK2019: unresolved external symbol __imp_modf referenced in function &quot;public: class llvm::Optional&lt;__int64&gt; __cdecl llvm::json::Value::getAsInteger(void)const &quot; (?getAsInteger@Value@json@llvm@@QEBA?AV?$Optional@_J@3@XZ)
          librustc_llvm-1e5f6b2d41c05068.rlib(Chrono.cpp.obj) : error LNK2019: unresolved external symbol __imp__localtime64_s referenced in function &quot;class llvm::raw_ostream &amp; __cdecl llvm::operator&lt;&lt;(class llvm::raw_ostream &amp;,class std::chrono::time_point&lt;struct std::chrono::system_clock,class std::chrono::duration&lt;__int64,struct std::ratio&lt;1,1000000000&gt; &gt; &gt;)&quot; (??6llvm@@YAAEAVraw_ostream@0@AEAV10@V?$time_point@Usystem_clock@chrono@std@@V?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@@23@@chrono@std@@@Z)
          C:\Users\quydx\Documents\Code\rust\build\x86_64-pc-windows-msvc\stage0-rustc\x86_64-pc-windows-msvc\release\deps\rustc_driver-f94565c51c798522.dll : fatal error LNK1120: 17 unresolved externals
</code></pre></div>



<a name="204982161"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204982161" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204982161">(Jul 25 2020 at 01:41)</a>:</h4>
<p>that looks like the same error as before <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span></p>



<a name="204982222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204982222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204982222">(Jul 25 2020 at 01:43)</a>:</h4>
<p>I don't use windows so I'm not sure how much I can help :/ can you compile normal C programs?</p>



<a name="204984328"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204984328" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204984328">(Jul 25 2020 at 02:45)</a>:</h4>
<p>it seems like the llvm build is success but installation step is not</p>



<a name="204985495"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/204985495" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#204985495">(Jul 25 2020 at 03:18)</a>:</h4>
<p>So it looks like the vcpkg install doesn't support shared libs for LLVM, and they provide <a href="https://github.com/llvm/llvm-project/blob/33d9c4109ac234bcf17501ba16880ce80622cc9c/llvm/CMakeLists.txt#L579">this link</a>, which just confuses me hmm.</p>



<a name="205014648"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/205014648" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#205014648">(Jul 25 2020 at 18:07)</a>:</h4>
<p>Ok, I got it to work on wsl, but <code>python3 x.py test</code> gives me a bunch of tidy errors.</p>
<div class="codehilite"><pre><span></span><code>tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-ffi.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-macros.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-ownership.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-plugins.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-pointers.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-strings.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-tasks.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-testing.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide-unsafe.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/guide.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/index.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/intro.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/man/rustc.1
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/man/rustdoc.1
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/not_found.md
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/redirect.inc
tidy error: binary checked into source: /mnt/c/Users/quydx/rust/src/doc/reference.md
</code></pre></div>



<a name="205015054"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/stage0%20windows%20build%20failure/near/205015054" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Quy Nguyen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/stage0.20windows.20build.20failure.html#205015054">(Jul 25 2020 at 18:15)</a>:</h4>
<p>Hmm ok found the bug and made a PR. Seems like Windows is not used often around here :P</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>